<!DOCTYPE html>
<html>
<head>
    <!--需要改-->
    <base href="http://localhost/curriculumDesign/cilentservicer/">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Content-Language" content="zh-CN">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CS - Center</title>
    <!-- <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"> -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css"
          rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/vue.js"></script>
    <script src="js/vue-resource.js"></script>

</head>
<body>
<div id="login">
    <input v-model="uid" placeholder="uid">
    <button class="btn btn-default" @click="login()">Submit</button>
</div>

<script>
    // login

    var vm = new Vue({
        el: '#login',
        data: {
            uid: "10010"
        },
        methods: {
            login: function () {
                this.$http.get("login", {params: {uid: this.uid}}).then(function (value) {
                    alert("ok")
                })
            }
        }
    })
</script>

</body>
</html>